import request from '@/utils/request'

// 查询网格社区按社区维度统计列表
export function listSqzxt(query) {
  return request({
    url: '/buss/gridSq/queryGridSqAll',
    method: 'get',
    params: query
  })
}

// 查询网格社区按社区维度统计详细
export function getSqzxt(query) {
  return request({
    url: '/buss/gridSq/queryGridSqAll/',
    method: 'get',
    params: query
  })
}

// 新增网格社区按社区维度统计
export function addSqzxt(data) {
  return request({
    url: '/buss/sqzxt',
    method: 'post',
    data: data
  })
}

// 修改网格社区按社区维度统计
export function updateSqzxt(data) {
  return request({
    url: '/buss/sqzxt',
    method: 'put',
    data: data
  })
}

// 删除网格社区按社区维度统计
export function delSqzxt(id) {
  return request({
    url: '/buss/sqzxt/' + id,
    method: 'delete'
  })
}

// 客户变更
export function queryWgBg(query) {
  return request({
    url: '/buss/gridCj/queryWgBg',
    method: 'get',
    params: query
  })
}



// 管护机构
export function orglist(query) {
  return request({
    url: '/buss/org/list',
    method: 'get',
    params: query
  })
}

// 客户经理
export function queryManager(query) {
  return request({
    url: '/buss/customer/queryManager',
    method: 'get',
    params: query
  })
}

// 所属小区
export function selectSssqList(query) {
  return request({
    url: '/buss/sqgh/selectSqOrXq',
    method: 'get',
    params: query
  })
}

// 社区新增客户
export function addWgsq(data) {
  return request({
    url: '/buss/gridSq/addWgsq',
    method: 'post',
    data: data
  })
}

// 客群标签
export function listGroup(query) {
  return request({
    url: '/buss/groupInfo/listGroup',
    method: 'get',
    params: query
  })
}
